import { OmitPartial } from '/#/utils';
import { BasicPageParams, BasicModel, BasicFetchResult } from '/@/api/model/baseModel';

export interface BasicOpmsDistressReliefModel {
  /**
   * id
   */
  id: number;
  /**
   * 救助类型
   */
  type: string;
  /**
   * 申请状态
   */
  status: string;
  /**
   * 申请原因
   */
  reason: string;
  /**
   * 申请材料
   */
  file: string;
  /**
   * 救助金额
   */
  money: string;
  /**
   * 救助级别
   */
  level: string;
  /**
   * 申请人
   */
  applicant: string;
  /**
   * 申请居民id
   */
  applicantId: number;
}

/**
 * 后台开启id序列化时id类型为字符串，如果没开启id类型就是number,此处用一个动态类型代替，方便生成；
 */
export type OpmsDistressReliefIDType = BasicOpmsDistressReliefModel['id'];

export type UpdateOpmsDistressReliefParams = OmitPartial<BasicOpmsDistressReliefModel, 'id'>;

export type OpmsDistressReliefParams = Partial<BasicOpmsDistressReliefModel>;

export type OpmsDistressReliefPageSearchParams = BasicPageParams & OpmsDistressReliefParams;

export type OpmsDistressReliefListSearchParams = OpmsDistressReliefParams;

export type OpmsDistressReliefModel = BasicModel & BasicOpmsDistressReliefModel;

export type OpmsDistressReliefPageListGetResultModel = BasicFetchResult<OpmsDistressReliefModel>;

export type OpmsDistressReliefListGetResultModel = OpmsDistressReliefModel[];
